﻿using FriendStar.Code;
using System.Collections.Generic;
using System.Linq;
using System.Web.Mvc;
using FriendStar.Application.VBaseData;
using FriendStar.Domain.Entity.VBaseData;

namespace FriendStar.Web.Areas.VBaseData.Controllers
{
    public class V_CPK_12_DJ_StoRegister_MidController : ControllerBase
    {
        private V_CPK_12_DJ_StoRegister_MidApp v_cpk_12_DJ_StoRegister_MidApp = new V_CPK_12_DJ_StoRegister_MidApp();
        [HttpGet]
        [HandlerAjaxOnly]
        public ActionResult GetGridJson(string keyword)
        {
            var data = v_cpk_12_DJ_StoRegister_MidApp.GetList(keyword);
            return Content(data.ToJson());
        }

       

        public ActionResult GetNoticeListJson(Pagination pagination, string FHappenCompanyNO, string FProductionNO, string BeginFCurDate, string EndFCurDate, string FVoucherNo,string type)
        {
            var data = v_cpk_12_DJ_StoRegister_MidApp.GetList(pagination, FHappenCompanyNO, FProductionNO, BeginFCurDate, EndFCurDate, FVoucherNo,type);
            return Content(data.ToJson());
        }


        public ActionResult GetPickListJson(Pagination pagination, string FHappenCompanyNO, string FProductionNO, string BeginFCurDate, string EndFCurDate, string FVoucherNo, string type)
        {
            var data = v_cpk_12_DJ_StoRegister_MidApp.GetList(pagination, FHappenCompanyNO, FProductionNO, BeginFCurDate, EndFCurDate, FVoucherNo, "CC");
            return Content(data.ToJson());
        }

    }
}
